package com.ququ.syb.business.transfer.fegin;

import com.ququ.common.result.Result;
import com.ququ.syb.common.pojo.TransferOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "transferorder")
public interface TransferOrderFegin {

    @RequestMapping(value = "/query")
    Result<TransferOrder> getTransferOrder(@RequestParam(value = "tradenum") String tradenum);

    @RequestMapping(value = "/save", method = RequestMethod.POST)
    Result<TransferOrder> saveTransferOrder(@RequestBody TransferOrder transferOrder);

    @RequestMapping(value = "/update", method = RequestMethod.POST)
    Result<TransferOrder> updateTransferOrder(@RequestBody TransferOrder transferOrder);

}
